package priv.demos.demo1.solution.main;

import com.alibaba.fastjson.JSON;
import com.payment.lc.pcs.common.util.MyBeanUtils;
import com.payment.lc.pcs.service.domain.Production;

import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Set;

/**
 * Created on 2017/1/11.
 */
public class Main2 {

    public static void main(String[] args) throws Exception {
        Production production = new Production();
        production.setProductionCode("abc");
        Production po1 = new Production();
        po1.setDescription("---.----");
//        MyBeanUtils.copyPropertiesIgnoreNull(production, po1,"productionCode");
        System.out.println(JSON.toJSONString(production));
        System.out.println(JSON.toJSONString(po1));
    }
}